#include <iostream>
/**
 * The C++ enum facility provides an alternative to const for creating symbolic constants.
 * It also lets you define new types but in a fairly restricted fashion.
 * The syntax for enum resembles structure syntax.
*/

/**
 * The statement below does two things:
 * 1. It makes spectrum the name of a new type
 * 2. It establishes red, orange, yellow, and so on, as symbolic constants for the integer
 * values 0-2. These constants are called enumerators.
*/
enum spectrum {red, orange, yellow};